﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using DailyDiet.Models;
using Xamarin.Forms;

namespace DailyDiet.Converters
{
    class ItemTappedEventArgsToFeedbackObject : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter,
            CultureInfo culture) =>
            (value as ItemTappedEventArgs)?.Item as FeedbackObject;

        public object ConvertBack(object value, Type targetType, object parameter,
            CultureInfo culture) {
            throw new NotImplementedException();
        }
    }
}
